/* Heersink, Peterson, and Peterson - Mobilization and Countermobilization - Analyses */

* Table A.4 *

reghdfe ln_dontotal anyvisit_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_dontotal c_dma_purereg k_dma_purereg t_dma_purereg  p_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.5 *

reghdfe all_don anyvisit_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe all_don c_dma_purereg k_dma_purereg t_dma_purereg  p_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe c_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe t_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg if obamamarginunder10==1, absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.6 *

reghdfe ln_c_dontotal c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m2



* Table A.7 *

reghdfe c_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe t_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m2



* Table A.9 *

reghdfe ln_c_dontotal200 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal200 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal500 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal500 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.10 *

reghdfe ln_c_dontotal51200 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal51200 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal201500 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal201500 c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.11 *

reghdfe ln_ma_c_dontotal c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_ma_t_dontotal c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg , absorb(zcta_id day) vce(cluster dma)
eststo m2



* Table A.12 *

reghdfe ln_c_dontotal c_dma_purereg t_dma_purereg k_dma_purereg p_dma_purereg hillary911 debate1 trumptape debate2 debate3 comey, absorb(zcta_id) vce(cluster dma)
eststo m1

reghdfe ln_c_dontotal c_dma_purereg t_dma_purereg k_dma_purereg p_dma_purereg hillary911 debate1 trumptape debate2 debate3 comey, absorb(zcta_id week) vce(cluster dma)
eststo m2

reghdfe ln_t_dontotal c_dma_purereg t_dma_purereg k_dma_purereg p_dma_purereg hillary911 debate1 trumptape debate2 debate3 comey, absorb(zcta_id) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal c_dma_purereg t_dma_purereg k_dma_purereg p_dma_purereg hillary911 debate1 trumptape debate2 debate3 comey, absorb(zcta_id week) vce(cluster dma)
eststo m4



* Table A.13 *

xtpoisson c_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg i.day if obamamarginunder10==1, fe i(zcta_id)
eststo m1

xtpoisson t_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg i.day if obamamarginunder10==1, fe i(zcta_id)
eststo m2



* Table A.14 *

xtnbreg c_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg i.day if obamamarginunder10==1, fe i(zcta_id)
eststo m3

xtnbreg t_don c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg i.day if obamamarginunder10==1, fe i(zcta_id)
eststo m4



/* For analyses w/ DMA as unit of analysis - in separate data file */

* Table A.15 *

reghdfe ln_c_dontotal_dma c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg if obamamarginunder10==1, absorb(dma day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal_dma c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg if obamamarginunder10==1, absorb(dma day) vce(cluster dma)
eststo m2



* Table A.16 *


reghdfe ln_c_dontotal_dma c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg, absorb(dma day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal_dma c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg, absorb(dma day) vce(cluster dma)
eststo m4



* Table A.17 *

reghdfe ln_c_dontotal c_purereg50 k_purereg50 t_purereg50 p_purereg50 , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal c_purereg50 k_purereg50 t_purereg50 p_purereg50 , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal500 c_purereg50 k_purereg50 t_purereg50 p_purereg50 , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal500 c_purereg50 k_purereg50 t_purereg50 p_purereg50 , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.18 *

reghdfe ln_c_dontotal c_purereg20 k_purereg20 t_purereg20 p_purereg20 , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal c_purereg20 k_purereg20 t_purereg20 p_purereg20 , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal500 c_purereg20 k_purereg20 t_purereg20 p_purereg20 , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal500 c_purereg20 k_purereg20 t_purereg20 p_purereg20 , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.19 *

reghdfe ln_dontotal anyvisit_dma_reg, absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_dontotal c_dma_reg t_dma_reg k_dma_reg p_dma_reg, absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal c_dma_reg t_dma_reg k_dma_reg p_dma_reg, absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal c_dma_reg t_dma_reg k_dma_reg p_dma_reg, absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.20 *

reghdfe ln_dontotal anyvisit_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_dontotal c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.21 *

reghdfe c_don c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe t_don c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m2



* Table A.22 *

reghdfe ln_dontotal_over2000 anyvisit_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_dontotal_over2000 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal_over2000 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal_over2000 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.23 *

reghdfe ln_c_dontotal200 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal200 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal500 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal500 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.24 *

reghdfe ln_c_dontotal51200 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe ln_t_dontotal51200 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal201500 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal201500 c_dma_fund t_dma_fund k_dma_fund p_dma_fund , absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.28 *

reghdfe o_don c_dma_reg t_dma_reg k_dma_reg p_dma_reg , absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe r_don c_dma_reg t_dma_reg k_dma_reg p_dma_reg, absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_o_dontotal c_dma_reg t_dma_reg k_dma_reg p_dma_reg, absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_r_dontotal c_dma_reg t_dma_reg k_dma_reg p_dma_reg, absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.31 *

reghdfe c_don bd_dma cu_dma lb_dma, absorb(zcta_id day) vce(cluster dma)
eststo m1

reghdfe t_don bd_dma cu_dma lb_dma, absorb(zcta_id day) vce(cluster dma)
eststo m2

reghdfe ln_c_dontotal bd_dma cu_dma lb_dma, absorb(zcta_id day) vce(cluster dma)
eststo m3

reghdfe ln_t_dontotal bd_dma cu_dma lb_dma, absorb(zcta_id day) vce(cluster dma)
eststo m4



* Table A.32 - using separate data files for precipitation and temperature *

reghdfe rainfall c_dma_purereg k_dma_purereg t_dma_purereg p_dma_purereg, absorb(zcta_id day)

reghdfe temperature clintonVisit kaineVisit trumpVisit penceVisit, absorb(county_code date) vce(cluster county)





